package zhouyi;
import java.util.Scanner;
public class TestFile4 {
    public static void main(String[] args) {
        int arr[][] = {{30,40},{50,60}};
        int arr1[][] = {{70,40},{20,60}};
        File4[] arr2 = new File4[1];
        int arr3[] = new int[2];


        int count = 0;
        for (int i = 0 ;i<2;i++){
            for (int j = 0; j<2;j++){


                arr3[0] += arr[i][j];   //arr里面相加的结果给arr2里面下标为0的
                arr3[1] += arr1[i][j];
            }

        }File4 file4 = new File4();
        file4.fan(arr3[0],arr3[1]);

    }
}

